<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>理财产品信息表</title>
</head>
<body>
	<form action="idServlet" style="margin-bottom: 20px">
		<b>产品代码</b> <input type="text" name="id"> <b>风险评级</b> <select name="risk"><option
				value="0">请选择</option>
			<option value="1">R1</option>
			<option value="2">R2</option>
			<option value="3">R3</option></select> 
			<input type="submit" value="查询">
		<a href="add.jsp">新增理财信息</a>
	</form>
	<table border="1">
		<tr>
			<th>产品代码</th>
			<th>风险评级</th>
			<th>预期收益</th>
			<th>发售起始日</th>
			<th>发售截止日</th>
			<th>产品到期日</th>
		</tr>
		<c:forEach items="${requestScope.list }" var="list">
			<tr align="middle">
				<td>${list.id }</td>

				<c:if test="${list.risk==1 }">
					<td>R1</td>
				</c:if>
				<c:if test="${list.risk==2 }">
					<td>R2</td>
				</c:if>
				<c:if test="${list.risk==3 }">
					<td>R3</td>
				</c:if>
				<td>${list.income}</td>
				<td>${list.saleStaring}</td>
				<td>${list.saleEne}</td>
				<td>${list.end}</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>